package com.mall.shopping;

import com.mall.shopping.dto.*;

/**
 * @Author: 逍遥子
 * @Date: 2022/01/19/23:25
 * @Description:
 */
public interface CartShopService {

    // 购物车列表
    CartListByIdResponse getCartListById(CartListByIdRequest request);

    // 添加商品到购物车
    AddCartResponse addToCart(AddCartRequest request);

    // 更新购物车商品
    UpdateCartNumResponse updateCartNum(UpdateCartNumRequest request);

    // 删除购物车中的商品
    DeleteCartShopResponse deleteCartShop(DeleteCartShopRequest deleteCartShopRequest);

    // 删除购物车选中的商品
    DeleteCartShopOfSelectedResponse deleteCartShopOfSelected(DeleteCartShopOfSelectedRequest request);

    // 全选/全不选购物车商品
    SelectCartShopResponse selectCartShop(SelectCartShopRequest request);

    // 清空用户购物车
    ClearCartItemResponse clearCartItemByUserID(ClearCartItemRequest request);
}
